# Remove Folder Doc Id
Clears the _dlc_DocId field from folder properties in SharePoint document libraries and removes the corresponding entries from the FolderIDs list.
Filename pattern: filename must contain RemoveFolderDocId (case-insensitive).
Example: 20240115 RemoveFolderDocId cleanup.xlsx
# Columns
| Name | Required | Description |
|---|---|---|
| Url | Yes | Absolute URL of the target site, document library, or folder. The scope of the operation depends on the URL type. |
Url is always required.
# Behavior
The scope of the operation is determined by the URL type:
| URL type | Scope |
|---|---|
| Site URL | All document libraries in the site |
| Document library URL | All folders in that library |
| Folder URL | That folder and all descendants |
The handler:
- Resolves the URL to determine scope (site, library, or folder).
- Queries all folders within scope using a recursive CAML query.
- Clears
_dlc_DocIdon each folder that has a non-empty value (processed in batches of 500). - Deletes the matching entries from the
FolderIDslist. If the list does not exist or a server error occurs, the deletion is skipped with a warning and the clear operation is still reported as successful.
The Document ID Service (opens new window) site collection feature must have been active at some point so that the _dlc_DocId column exists on the lists. The handler reads and clears this field — it does not require the feature to be currently active.
# Related links
- Update File Properties handler — update metadata columns on documents